<div data-th-include="system/dept/deptAdd"></div>
<div class="card">
    <div class="card-block">
        <div class="table-responsive">
            <div id="data-table_wrapper" class="dataTables_wrapper">
                <div id="data-table_filter" class="dataTables_filter">
                    <form class="dept-table-form" onsubmit="return false;">
                        <div class="row">
                            <div class="col-sm-3">
                                <div class="input-group">
                                    <span class="input-group-addon">
					               	名称：
					            </span>
                                    <div class="form-group">
                                        <input type="text" name="deptName" class="form-control">
                                        <i class="form-group__bar"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-3">
                                <button class="btn btn-success"  onclick="search()" >搜索</button>
                            </div>
                        </div>
                        <div class="row"  shiro:hasAnyPermissions="dept:add,dept:delete,dept:update">
                            <div class="col-sm-1">
                                <a href="javascript:void(0)" class="btn btn-success" data-toggle="modal" data-target="#dept-add" shiro:hasPermission="dept:add">新增部门</a>
                            </div>
                            <div class="col-sm-1">
                                <a href="javascript:void(0)" class="btn btn-warning" onclick="updateDept()" shiro:hasPermission="dept:update">修改部门</a>                            </div>
                            <div class="col-sm-1">
                                <a href="javascript:void(0)" class="btn btn-danger" onclick="deleteDepts();" shiro:hasPermission="dept:delete">删除部门</a>
                            </div>
                        </div>
                    </form>
                </div>
                <table id="deptTable" data-mobile-responsive="true" class="mb-bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>
<script data-th-src="@{js/app/system/dept/dept.js}"></script>
<script data-th-src="@{js/app/system/dept/deptEdit.js}"></script>